package com.example.config;

import com.baidu.disconf.client.common.annotations.DisconfFile;
import com.baidu.disconf.client.common.annotations.DisconfFileItem;
import org.springframework.stereotype.Service;

/**
 * Created by knightliao on 15/1/7.
 */
@Service("dbConfig")
//@DisconfFile(filename = "public_system.properties")
//@DisconfFile(filename = "code.properties", targetDirPath = "disconf")
//@DisconfFile(filename = "code.properties")
public class DBConfig {

    private String codeError = "";

    private boolean routerRateLimitEnable;

    private String url ;
//    @DisconfFileItem(name = "syserror.paramtype", associateField = "codeError")
    public String getCodeError() {
        return codeError;
    }

//    @DisconfFileItem(name = "proxy.routerRateEnable", associateField = "routerRateLimitEnable")
    public boolean isRouterRateLimitEnable() {
        return routerRateLimitEnable;
    }


    public void setRouterRateLimitEnable(boolean routerRateLimitEnable) {
        this.routerRateLimitEnable = routerRateLimitEnable;
    }

//    public void setCodeError(String codeError) {
//        this.codeError = codeError;
//    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
}
